var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  if(req.session.power === 0){
    res.render('cart', {
      index:5,
      power:req.session.power
    });
  }else{
    res.send("没有权限")
  }
});

module.exports = router;
